/**
 * 
 * 登陆js
 * 
 */

function checkLogin() {

	var email = $.trim($("#email").val());
	if (email == '') {
		$("#email_desc").html("<ul class=\"errorlist\"><li>你还没有填写电子邮箱哦。</li></ul>");
		return false;
	}else{
		$("#email_desc").html("");
	}

	if (!IsEmail(email)) {
		$("#email_desc").html("<ul class=\"errorlist\"><li>电子邮箱格式不正确哦。</li></ul>");
		return false;
	}

	var password = $.trim($("#password").val());
	if (password == '') {
		$("#password_desc").html("<ul class=\"errorlist\"><li>你还没有填写密码哦。</li></ul>");
		return false;
	}else{
		$("#password_desc").html("");
	}

	return true;
}